﻿
CREATE FUNCTION FileCountByToolID
(
	@ToolID int
)
RETURNS INT
AS
BEGIN
	-- Declare the return variable here
	DECLARE @RetInt INT = 0

	SELECT @RetInt = COUNT(*) FROM ToolFileMap WHERE ToolID = @ToolID;

	RETURN @RetInt;
END